<%@ page import="com.grouplay.entity.User" %><%--
  Created by IntelliJ IDEA.
  User: YYW
  Date: 2020/5/30
  Time: 20:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String name = "";
    if (session.getAttribute("user") == null){
        out.print("<h3>\n" +
                "    未登录\n" +
                "</h3>");
        return;
    } else {
        name = ((User) session.getAttribute("user")).getName();
    }
%>
<form class="form-horizontal" role="form" action="./user/createGroup" method="post" id="createGroupForm" onsubmit="return createGroup();">
    <div class="form-group">
        <label for="groupName" class="col-sm-3 control-label">团队名：</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" id="groupName" name="groupName" required/>
        </div>
    </div>
    <div class="form-group">
        <label for="totalBudget" class="col-sm-3 control-label">总预算：</label>
        <div class="col-sm-8">
            <input type="number" class="form-control" id="totalBudget" step="0.01" name="totalBudget" required/>
        </div>
    </div>
    <div class="form-group">
        <label for="personalBudget" class="col-sm-3 control-label">个人预算：</label>
        <div class="col-sm-8">
            <input type="number" class="form-control" id="personalBudget" step="0.01" name="personalBudget" required/>
        </div>
    </div>
    <div class="form-group">
        <label for="beginTime" class="col-sm-3 control-label">活动开始日期：</label>
        <div class="col-sm-8">
            <input type="date" class="form-control" id="beginTime" name="beginTime" required/>
        </div>
    </div>
    <div class="form-group">
        <label for="description" class="col-sm-3 control-label">活动描述：</label>
        <div class="col-sm-8">
            <textarea class="form-control" id="description" rows="10" name="description"></textarea>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-3 col-sm-9">
            <button type="submit" class="btn btn-default">创建</button>
        </div>
    </div>
</form>
